package com.git.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

@Document(indexName= "books", type= "book")
public class Book {
	@Id
	private Integer id;
	private Integer price;
	private String type; 
	private String context;
	
	
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getPrice() {
		return price;
	}
	public void setPrice(Integer price) {
		this.price = price;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getContext() {
		return context;
	}
	public void setContext(String context) {
		this.context = context;
	}
	public Book(Integer id, Integer price, String type, String context) {
		super();
		this.id = id;
		this.price = price;
		this.type = type;
		this.context = context;
	}
	public Book() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
	
}
